package com.translate.web.api.controller;

import java.util.List;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.response.vo.ResponseModel;
import com.translate.vo.ServicePriceConfVO;
import com.translate.web.service.IServicePriceConfService;

@RestController
@RequestMapping("servicePriceConf")
public class ServicePriceConfController {
	private IServicePriceConfService service;

	public ServicePriceConfController(IServicePriceConfService service) {
		this.service = service;
	}

	/**
	 * 服务价格列表
	 * @param param
	 * @return
	 */
	@PostMapping("/listServicePriceConf")
	public ResponseModel<List<ServicePriceConfVO>> listServicePriceConf() {

		return ResponseModel.<List<ServicePriceConfVO>>success(this.service.getListFromCache(ServicePriceConfVO.class));
	}

}